package middlware;

import application.Message;


public class ClientProxy implements InterfaceDescripition {
	
	public int soma(int ... vetor) throws Exception{
		Message requisicao = new Message(1,"soma",vetor);
		Requestor requestor = new Requestor();
		Message resposta = requestor.recebeRequisicaoClientProxy(requisicao);
		return resposta.getResultado();
		
	}

	public int subtracao(int ... vetor) throws Exception {
		
		Message requisicao = new Message(1,"subtracao",vetor);
		Requestor requestor = new Requestor();
		Message resposta = requestor.recebeRequisicaoClientProxy(requisicao);
		return resposta.getResultado();
	}
}
